package com.test.exercise;

/**
 * description: new java files...TODO
 * @version v1.0
 * @author w
 * @date 2018年10月26日上午11:25:43
 *
 */

public class CaiCaiThread {
	
	public static void main(String[] args) {
		final int count = 20 ; 
		for(int i =0; i < count ; i++){
			new Thread(){
				@Override
				public void run() {
					for(int j = 0; j < count ; j++){
						say(Thread.currentThread().getName(),j);
					}
				}}.start();
		}
	}

	protected static void say(String name,int j ) {
		System.out.println(name + " --> "+ j);
	}
}
